Xbasic

OBJECT.REFRESH Function

Syntax

.Refresh()

Description

Forces a layout to refetch data from the data source and redraw the layout.

The <OBJECT>.REFRESH() method applies to:

Control Panel (for <OBJECT> use the keyword "CONTROLPANEL")
Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)
Form Controls (for <OBJECT> use the <CONTROL> pointer or the address of the control)

The <OBJECT>.REFRESH() method forces a layout to re-fetch data from its data source, and then to repaint itself. <OBJECT>.REFRESH() does not do a new query to see if the record content of a browse would be different, as does the OBJECT.RESYNCH Method.

Example

:invoices:sales_tax.refresh()

Limitations

Desktop applications only.

See Also